ComponentOne Bitmap for WPF
C1.WPF.DX.4.5.2 Assembly / C1.Util.DX.Direct3D11 Namespace / DeviceContext Class / UpdateSubresourceSafe Method / UpdateSubresourceSafe<T>(T[],Resource,Int32,Int32,Int32,Int32,Boolean) Method
Type of the data to upload
A reference to the data to upload.
The destination resource.
The size in bytes per pixel/block element.
The destination subresource.
The row pitch.
The depth pitch.
if set to true the resource is a block/compressed resource

In This Topic
    UpdateSubresourceSafe<T>(T[],Resource,Int32,Int32,Int32,Int32,Boolean) Method
    In This Topic
    Copies data from the CPU to to a non-mappable subresource region.
    Syntax
    'Declaration
     
    Public Overloads Sub UpdateSubresourceSafe(Of T As {New, Struct})( _
       ByVal data() As T, _
       ByVal resource As Resource, _
       ByVal srcBytesPerElement As Integer, _
       Optional ByVal subresource As Integer, _
       Optional ByVal rowPitch As Integer, _
       Optional ByVal depthPitch As Integer, _
       Optional ByVal isCompressedResource As Boolean _
    ) 
    public void UpdateSubresourceSafe<T>( 
       T[] data,
       Resource resource,
       int srcBytesPerElement,
       int subresource,
       int rowPitch,
       int depthPitch,
       bool isCompressedResource
    )
    where T: new(), struct

    Parameters

    data
    A reference to the data to upload.
    resource
    The destination resource.
    srcBytesPerElement
    The size in bytes per pixel/block element.
    subresource
    The destination subresource.
    rowPitch
    The row pitch.
    depthPitch
    The depth pitch.
    isCompressedResource
    if set to true the resource is a block/compressed resource

    Type Parameters

    T
    Type of the data to upload
    See Also